package com.masterclient.app.businessmodule.vipmodule.bean;

import java.io.Serializable;

public class Products implements Serializable {

    /**
     * id : 11
     * product_id : 5000001
     * parent_product_id : 1
     * name : 自营商品001
     * image : http://oss.xrkmall.com/upload_dev/product/f/d/b/fdb48cc23cce9e64fff3ae64bfc38b1e.jpg?x-oss-process=image/resize,m_fixed,w_300
     * attribute_desc : 颜色:红色
     * price : 30
     * integral : 0
     * buy_qty : 1
     */

    private String id;
    private String product_id;
    private String parent_product_id;
    private String name;
    private String image;
    private String attribute_desc;
    private String price;
    private String integral;
    private String buy_qty;
    private String refund_qty;
    // 以下售后订单数据
    private String title;
    private String num;
    private String refund_amount;
    private String spec;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getParent_product_id() {
        return parent_product_id;
    }

    public void setParent_product_id(String parent_product_id) {
        this.parent_product_id = parent_product_id;
    }

    public String getName() {
        if(name == null)
            return title;
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getAttribute_desc() {
        if(attribute_desc == null)
            return spec;
        return attribute_desc;
    }

    public void setAttribute_desc(String attribute_desc) {
        this.attribute_desc = attribute_desc;
    }

    public String getPrice() {
        if(price == null)
            return refund_amount;
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    public String getBuy_qty() {
        if(buy_qty == null)
            return num;
        return buy_qty;
    }

    public void setBuy_qty(String buy_qty) {
        this.buy_qty = buy_qty;
    }

    public String getRefund_qty() {
        return refund_qty;
    }

    public void setRefund_qty(String refund_qty) {
        this.refund_qty = refund_qty;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public void setRefund_amount(String refund_amount) {
        this.refund_amount = refund_amount;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getTitle() {
        return title;
    }

    public String getNum() {
        return num;
    }

    public String getRefund_amount() {
        return refund_amount;
    }

    public String getSpec() {
        return spec;
    }
}
